package ooday04;

public class Dog1 extends Animal1 implements Swim{
    Dog1(String name1,int age1,String color1){
        super(name1,age1,color1);
    }
    void lookHome(){
        System.out.println(color1+"色的"+age1+"岁的狗狗"+name1+"正在看家!");
    }
    void eat(){
        System.out.println(color1+"色的"+age1+"岁的狗狗"+name1+"正在吃骨头!");
    }
    public void swim(){
        System.out.println(color1+"色的"+age1+"岁的狗狗"+name1+"正在游泳!");
    }
}
